<juci-layout-with-sidebar>
	<div ng-controller="wirelessStatusPage">
		<juci-config-heading>{{ 'WiFi Status' | translate }}</juci-config-heading>
		<juci-config-info>{{ 'status.wifi.info' | translate }}</juci-config-info>
		<juci-config-lines>
			<juci-config-line title="{{'Scan neighboring APs'|translate}}">
				<button ng-disabled="scanning" ng-click="doScan()" class="btn btn-default">
					<span ng-show="!scanning">Scan</span>
					<span ng-show="scanning"><i class="fa fa-spinner fa-spin"></i> <span translate>Scanning...</span></span>
				</button>
			</juci-config-line>
		</juci-config-lines>
		<div ng-show="dfs_enabled" class="alert alert-info" translate>You will not be able to scan 5Ghz band because your 5Ghz wifi radio is configured to use DFS channels</div> 
		<wireless-aps-graph ng-model="access_points"></wireless-aps-graph>
		<table class="table">
			<thead>
				<th><a href="" ng-click="order('ssid')" translate>SSID</a></th>
				<th><a href="" ng-click="order('frequency')" translate>Frequency</a></th>
				<th><a href="" ng-click="order('channel')" translate>Channel</a></th>
				<th><a href="" ng-click="order('rssi')" translate>RSSI</a></th>
				<th><a href="" ng-click="order('noise')" translate>Noise</a></th>
				<th><a href="" ng-click="order('cipher')" translate>Cipher</a></th>
				<th><a href="" ng-click="order('wps_version')" translate>WPS</a></th>
			</thead>
			<tr ng-repeat="ap in access_points track by $index | orderBy:predicate:reverse">
				<td>{{ap.ssid}}</td>
				<td>{{ap.frequency}}</td>
				<td>{{ap.channel}}</td>
				<td>{{ap.rssi}}</td>
				<td>{{ap.noise}}</td>
				<td>{{ap.cipher}}</td>
				<td>{{ap.wps_version}}</td>
			</tr>
		</table>
	</div>
</juci-layout-with-sidebar>
